<?php
/**
 * Created by PhpStorm.
 * User: change
 * Date: 2017/1/3
 * Time: 19:40
 * 血型
 */
namespace Admin\Model;
use Base\Model\BaseModel;

class BloodtypeinfoModel extends BaseModel
{
    protected $_validate = array(
        array('name', 'require', '名称必须填写'),
        array('name', '', '血型已经存在', 0, 'unique', 3),
        array('name','/^[a-zA-Z_\x{4e00}-\x{9fa5}]+$/u', '血型名称不符合规则！',3),

    );
    protected $_auto = array(
        array('status', '1'),
    );
}